package com.cow.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cow.entity.Order;

import java.util.List;
import java.util.Map;

public interface OrderService extends IService<Order> {
    boolean handleCartOrder(List<Order> orders);

    boolean add(Order order);

    List<Map<String,Object>> selectOrdersByUserAccount(String userAccount);

    Map<String,Object> orderOverView();

    List<Map<String, Object>> selectProductTypeChart(String startTime, String endTime);

    List<Map<String, Object>> selectChartDate(String startTime, String endTime);

    Map<String, Object> selectCountAndAmount(String startTime, String endTime);
}
